package com.etl.dataflow.executor.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.stereotype.Component;

/**
 * 监听执行器关闭
 *
 * @author dx
 * @since 2022/4/20
 */
@Slf4j
@Component
public class ClosedListener implements ApplicationListener<ContextClosedEvent> {

    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        log.debug("执行器关闭");
    }
}
